<?

class graphDeviceUdpStatistics extends graphBase {
	protected $rrdFile = 'netstats_udp.rrd';
	protected function getOptions() {
		return array(
			'DEF:udpInDatagrams='.$this->rrdPath.':InDatagrams:AVERAGE',
			'DEF:udpOutDatagrams='.$this->rrdPath.':OutDatagrams:AVERAGE',
			'DEF:udpInErrors='.$this->rrdPath.':InErrors:AVERAGE',
			'DEF:udpNoPorts='.$this->rrdPath.':NoPorts:AVERAGE',
			'LINE1.25:udpNoPorts#660000:NoPorts     ','GPRINT:udpNoPorts:LAST:%6.2lf%s','GPRINT:udpNoPorts:AVERAGE: %6.2lf%s','GPRINT:udpNoPorts:MAX: %6.2lf%s\n',
			'LINE1.25:udpInErrors#cc0000:InErrors    ','GPRINT:udpInErrors:LAST:%6.2lf%s','GPRINT:udpInErrors:AVERAGE: %6.2lf%s','GPRINT:udpInErrors:MAX: %6.2lf%s\n',
			'LINE1.25:udpOutDatagrams#006600:OutDatagrams','GPRINT:udpOutDatagrams:LAST:%6.2lf%s','GPRINT:udpOutDatagrams:AVERAGE: %6.2lf%s','GPRINT:udpOutDatagrams:MAX: %6.2lf%s\n',
			'LINE1.25:udpInDatagrams#00cc00:InDatagrams ','GPRINT:udpInDatagrams:LAST:%6.2lf%s','GPRINT:udpInDatagrams:AVERAGE: %6.2lf%s','GPRINT:udpInDatagrams:MAX: %6.2lf%s\n',
			'COMMENT:Packets/sec    Current    Average   Maximum\n'
		);
	}

}